<%@ page import="java.util.concurrent.TimeUnit" %><%--
  Created by IntelliJ IDEA.
  User: WYX
  Date: 2024/3/29
  Time: 9:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="day240329" tagdir="/WEB-INF/tags/day240329" %>
<html>
<head>
    <title>day03.1.jsp</title>
    <link rel="stylesheet" href="../css/day03.css">
</head>
<body>
<day240329:day01 n="100000"/>
<%long startTime=System.nanoTime();%>
<day240329:day02 num="<%=num%>"/>
<%long endTime=System.nanoTime();%>
<table>
    <h5>快速排序算法:<%=TimeUnit.NANOSECONDS.toMillis(endTime-startTime)%>ms</h5>
    <tr>

        <th>排序前</th>
        <th>排序后</th>
    </tr>
    <%for(int i=0;i<num.length;i++){%>
    <tr>
        <td><%=num[i]%></td>
        <td><%=arr[i]%></td>
    </tr>
    <%}%>
</table>
</body>
</html>
